﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;

namespace DBService
{
    public class DBParameterCollentions : IEnumerable
    {
       ArrayList list;
       public DBParameterCollentions()
       {
           list = new ArrayList();

       }
       public void AddDBParameter(DBParameter para)
       {
           list.Add(para);
       }


       #region IEnumerable 成员

       public IEnumerator GetEnumerator()
       {
           int len = list.Count;
           for (int i = 0; i < len; i++)
           {
               yield return list[i];   //把数组变成每个IEnumerable的项,使类型成为可枚举的类型 
           } 
       }

       #endregion
    }
}
